package com.design.adapter;

/**
 * @Author: ChengLei.Liu
 * @Date: 2020-06-10 12:01
 * @Description: 适配器模式
 */
public class AdapterDemo {

    public static void main(String[] args) {
        Phone phone = new Phone();
        phone.recharge(new VoltageAdapterClass());
        phone.recharge(new VoltageAdapterObj(new Output220V()));
    }
}
